package com.bwton.msx.ccb.utils;


import com.bwton.msx.ccb.R;
import com.sensetime.ssidmobile.sdk.liveness.constants.STMotion;

import java.util.ArrayList;
import java.util.List;

public class MotionUtil {

    public static int getMotionNameResID(final int motion) {
        switch (motion) {
            case STMotion.BLINK:
                return R.string.blink;
            case STMotion.MOUTH:
                return R.string.mouth;
            case STMotion.NOD:
                return R.string.nod;
            case STMotion.YAW:
                return R.string.yaw;
            default:
                break;
        }
        return -1;
    }

    public static List<Integer> getAllMotions() {
        List<Integer> motions = new ArrayList<>();
        motions.add(STMotion.BLINK);
        motions.add(STMotion.MOUTH);
        motions.add(STMotion.NOD);
        motions.add(STMotion.YAW);
        return motions;
    }
}
